import React from 'react';
import {useResolvedPath} from 'react-router-dom'

const News = () => {
  console.log('/user?id=001&name=tom#que', useResolvedPath('/user?id=001&name=tom#que'))
  return (
    <ul>
      <li>news001</li>
      <li>news002</li>
      <li>news003</li>
    </ul>
  );
};

export default News;